{template "header.html"}

<div class="page-content">

    <div class="container">

        <ul class="page-breadcrumb breadcrumb">
            <li class="symbol-title">
                <a href="{SITE_URL}">网站首页</a>
                <i class="fa fa-circle"></i>
            </li>
            <li>
                <span>会员大全</span>
            </li>
        </ul>

        <div class="search-page search-content-3">


            <div class="portlet light">
                <div class="portlet-title">
                    <div class="caption">
                        <span class="caption-subject font-green-sharp"> 条件筛选 </span>
                    </div>
                </div>
                <div class="portlet-body form fc-search-param">
                    <div class="form-body">
                        <div class="form-group row">
                            <label class="col-md-2 control-label">用户组</label>
                            <div class="col-md-9">
                                <label><a class="label {if !$groupid}label-success{else}label-default{/if}" href="{dr_hx_search_url($params, 'groupid', NULL)}">不限</a></label>
                                <!--调用栏目分类，这种用法只能用于模块列表与搜索页面-->
                                {loop $ci->member_cache['group'] $t}
                                <label><a class="label {if $t.id==$groupid}label-success{else}label-default{/if}" href="{dr_hx_search_url($params, 'groupid', $t.id)}">{$t.name}</a></label>
                                {/loop}
                            </div>
                        </div>

                        
                        <!--按关键字搜索-->
                        <div class="form-group row">
                            <label class="col-md-2 control-label" style="padding-top:5">内容搜索</label>
                            <div class="col-md-6">
                                <div class="input-group">
                                    <input type="text" class="form-control" onkeypress="if(event.keyCode==13) {dr_module_search();return false;}" name='keyword' value='{$keyword}' id='search_keyword'>
                                    <span class="input-group-btn">
                                                <button class="btn blue" onclick="dr_module_search()" type="button"> <i class="fa fa-search"></i> 搜索</button>
                                            </span>
                                </div>
                            </div>
                        </div>
                        <script>
                            // 这段js是用来执行搜索的
                            function dr_module_search(name) {
                                var url="{dr_hx_search_url($params, ['keyword'], ['mykeyword'])}";
                                var keyword = $("#search_keyword").val();
                                if (keyword) {
                                    url = url.replace('mykeyword', keyword);
                                } else {
                                    url = url.replace('mykeyword', '');
                                }
                                location.href=url;
                                return false;
                            }
                        </script>

                    </div>
                </div>
            </div>

            <div class="portlet light">
                <div class="portlet-title">
                    <div class="caption">
                        <span class="caption-subject font-green-sharp"> 全部会员 </span>
                    </div>
                    <div class="actions">
                        <div class="btn-group">
                            <a href="{dr_hx_search_url($params, 'order', null)}" class="btn btn-default {if !$params.order}active{/if}"> <i class="fa fa-clock-o"></i> 默认排序 </a>
                            <a href="{dr_hx_search_url($params, 'order', 'regtime')}" class="btn btn-default {if $params.order=='regtime'}active{/if}"> <i class="fa fa-fire"></i> 注册时间排序 </a>

                        </div>
                    </div>
                </div>
                <div class="portlet-body search-container ">
                    <div class="row">
                        {if $where}
                        <!--调用MOD_DIR模块的数据 id和total和order参数(本页面固有参数) page=1标示开启分页 urlrule分页地址规则 pagesize每页数量-->
                        {member where=$where order=$params.order more=1 page=1 pagesize=16 urlrule=$urlrule}
                        <div class="col-md-4">
                            <div class="tile-container">
                                <div class="tile-thumbnail">
                                    <a href="{dr_hy_url($t.id)}">
                                        <img src="{dr_avatar($t.id)}">
                                    </a>
                                </div>
                                <div class="tile-title text-center">
                                    <h3>
                                        <a href="{dr_hy_url($t.id)}">{$t.username}（{$t.name}）</a>
                                    </h3>

                                </div>
                            </div>
                        </div>
                        {/member}
                        {/if}
                    </div>

                    {if !$count}
                    <div class="row fc-search-null">
                        <div class="col-md-12 text-center">
                            <i class="icon-close fc-search-null-icon"></i>
                            <label class="fc-search-null-txt">没有找到相关会员...</label>
                        </div>

                    </div>
                    {/if}
                    <div class="search-pagination">
                        <ul class="pagination">
                            {$pages}
                        </ul>
                    </div>
                </div>
            </div>
        </div>

    </div>

</div>

{template "footer.html"}